package com.maimao.kill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.kill.Activity;
import com.maimao.model.kill.KillRequirement;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/4/7 10:05 上午
 */
public interface KillRequirementMapper extends BaseMapper<KillRequirement> {

    @Select("select * from mm_kill_requirement where activityId =#{activityId}")
    KillRequirement selectByActivityId(@Param("activityId") Integer activityId);

    @Select("select * from mm_kill_requirement")
    List<KillRequirement> selectAll();
}
